<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="description" content="API docs for the EMOptions class from the im_flutter_sdk library, for the Dart programming language.">
  <title>EMOptions class - im_flutter_sdk library - Dart API</title>
  <!-- required because all the links are pseudo-absolute -->
  <base href="..">

  <link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:500,400i,400,300|Source+Sans+Pro:400,300,700" rel="stylesheet">
  <link rel="stylesheet" href="static-assets/github.css">
  <link rel="stylesheet" href="static-assets/styles.css">
  <link rel="icon" href="static-assets/favicon.png">

</head>

<body>

<div id="overlay-under-drawer"></div>

<header id="title">
  <button id="sidenav-left-toggle" type="button">&nbsp;</button>
  <ol class="breadcrumbs gt-separated dark hidden-xs">
    <li><a href="index.html">im_flutter_sdk</a></li>
    <li><a href="im_flutter_sdk/im_flutter_sdk-library.html">im_flutter_sdk</a></li>
    <li class="self-crumb">EMOptions class</li>
  </ol>
  <div class="self-name">EMOptions</div>
  <form class="search navbar-right" role="search">
    <input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
  </form>
</header>

<main>

  <div class="col-xs-6 col-sm-3 col-md-2 sidebar sidebar-offcanvas-left">
    <h5>im_flutter_sdk library</h5>
    <ol>
      <li class="section-title"><a href="im_flutter_sdk/im_flutter_sdk-library.html#classes">Classes</a></li>
      <li><a href="im_flutter_sdk/EMChatManager-class.html">EMChatManager</a></li>
      <li><a href="im_flutter_sdk/EMChatRoom-class.html">EMChatRoom</a></li>
      <li><a href="im_flutter_sdk/EMChatRoomEventListener-class.html">EMChatRoomEventListener</a></li>
      <li><a href="im_flutter_sdk/EMClient-class.html">EMClient</a></li>
      <li><a href="im_flutter_sdk/EMCmdMessageBody-class.html">EMCmdMessageBody</a></li>
      <li><a href="im_flutter_sdk/EMConnectionListener-class.html">EMConnectionListener</a></li>
      <li><a href="im_flutter_sdk/EMContact-class.html">EMContact</a></li>
      <li><a href="im_flutter_sdk/EMContactEventListener-class.html">EMContactEventListener</a></li>
      <li><a href="im_flutter_sdk/EMContactManager-class.html">EMContactManager</a></li>
      <li><a href="im_flutter_sdk/EMConversation-class.html">EMConversation</a></li>
      <li><a href="im_flutter_sdk/EMDeviceInfo-class.html">EMDeviceInfo</a></li>
      <li><a href="im_flutter_sdk/EMFileMessageBody-class.html">EMFileMessageBody</a></li>
      <li><a href="im_flutter_sdk/EMGroup-class.html">EMGroup</a></li>
      <li><a href="im_flutter_sdk/EMGroupChangeListener-class.html">EMGroupChangeListener</a></li>
      <li><a href="im_flutter_sdk/EMGroupInfo-class.html">EMGroupInfo</a></li>
      <li><a href="im_flutter_sdk/EMGroupManager-class.html">EMGroupManager</a></li>
      <li><a href="im_flutter_sdk/EMGroupOptions-class.html">EMGroupOptions</a></li>
      <li><a href="im_flutter_sdk/EMImageMessageBody-class.html">EMImageMessageBody</a></li>
      <li><a href="im_flutter_sdk/EMLocationMessageBody-class.html">EMLocationMessageBody</a></li>
      <li><a href="im_flutter_sdk/EMMessage-class.html">EMMessage</a></li>
      <li><a href="im_flutter_sdk/EMMessageListener-class.html">EMMessageListener</a></li>
      <li><a href="im_flutter_sdk/EMMucSharedFile-class.html">EMMucSharedFile</a></li>
      <li><a href="im_flutter_sdk/EMNormalFileMessageBody-class.html">EMNormalFileMessageBody</a></li>
      <li><a href="im_flutter_sdk/EMOptions-class.html">EMOptions</a></li>
      <li><a href="im_flutter_sdk/EMTextMessageBody-class.html">EMTextMessageBody</a></li>
      <li><a href="im_flutter_sdk/EMVideoMessageBody-class.html">EMVideoMessageBody</a></li>
      <li><a href="im_flutter_sdk/EMVoiceMessageBody-class.html">EMVoiceMessageBody</a></li>
    
    
    
    
    
      <li class="section-title"><a href="im_flutter_sdk/im_flutter_sdk-library.html#enums">Enums</a></li>
      <li><a href="im_flutter_sdk/EMChatRoomPermissionType-class.html">EMChatRoomPermissionType</a></li>
      <li><a href="im_flutter_sdk/EMGroupPermissionType-class.html">EMGroupPermissionType</a></li>
      <li><a href="im_flutter_sdk/EMGroupStyle-class.html">EMGroupStyle</a></li>
      <li><a href="im_flutter_sdk/EMMessageType-class.html">EMMessageType</a></li>
    
    
    </ol>
  </div>

  <div class="col-xs-12 col-sm-9 col-md-8 main-content">
      <h1>EMOptions class </h1>

    <section class="desc markdown">
      <p>初始化SDK上下文的选项</p>
    </section>
    

    <section class="summary offset-anchor" id="constructors">
      <h2>Constructors</h2>

      <dl class="constructor-summary-list">
        <dt id="EMOptions" class="callable">
          <span class="name"><a href="im_flutter_sdk/EMOptions/EMOptions.html">EMOptions</a></span><span class="signature">({<span class="parameter" id="-param-appKey"><span>@required</span> <span class="type-annotation">String</span> <span class="parameter-name">appKey</span></span> })</span>
        </dt>
        <dd>
          
        </dd>
      </dl>
    </section>

    <section class="summary offset-anchor" id="instance-properties">
      <h2>Properties</h2>

      <dl class="properties">
        <dt id="appKey" class="property">
          <span class="name"><a href="im_flutter_sdk/EMOptions/appKey.html">appKey</a></span>
          <span class="signature">&#8596; String</span> 
        </dt>
        <dd>
          
          <div class="features">read / write</div>
</dd>
        <dt id="hashCode" class="property inherited">
          <span class="name"><a href="im_flutter_sdk/EMOptions/hashCode.html">hashCode</a></span>
          <span class="signature">&#8594; int</span> 
        </dt>
        <dd class="inherited">
          The hash code for this object. <a href="im_flutter_sdk/EMOptions/hashCode.html">[...]</a>
          <div class="features">read-only, inherited</div>
</dd>
        <dt id="runtimeType" class="property inherited">
          <span class="name"><a href="im_flutter_sdk/EMOptions/runtimeType.html">runtimeType</a></span>
          <span class="signature">&#8594; Type</span> 
        </dt>
        <dd class="inherited">
          A representation of the runtime type of the object.
          <div class="features">read-only, inherited</div>
</dd>
      </dl>
    </section>

    <section class="summary offset-anchor" id="instance-methods">
      <h2>Methods</h2>
      <dl class="callables">
        <dt id="allowChatRoomOwnerLeave" class="callable">
          <span class="name"><a href="im_flutter_sdk/EMOptions/allowChatRoomOwnerLeave.html">allowChatRoomOwnerLeave</a></span><span class="signature">(<wbr><span class="parameter" id="allowChatRoomOwnerLeave-param-isChatRoomOwnerLeaveAllowed"><span class="type-annotation">bool</span> <span class="parameter-name">isChatRoomOwnerLeaveAllowed</span></span>)
            <span class="returntype parameter">&#8594; void</span>
          </span>
          </dt>
        <dd>
          设置是否允许聊天室owner离开并删除会话记录
          
</dd>
        <dt id="getAcceptInvitationAlways" class="callable">
          <span class="name"><a href="im_flutter_sdk/EMOptions/getAcceptInvitationAlways.html">getAcceptInvitationAlways</a></span><span class="signature">(<wbr>)
            <span class="returntype parameter">&#8594; bool</span>
          </span>
          </dt>
        <dd>
          获取是否自动接受加好友邀请 默认true
          
</dd>
        <dt id="getAutoLogin" class="callable">
          <span class="name"><a href="im_flutter_sdk/EMOptions/getAutoLogin.html">getAutoLogin</a></span><span class="signature">(<wbr>)
            <span class="returntype parameter">&#8594; bool</span>
          </span>
          </dt>
        <dd>
          获取是否自动登录
          
</dd>
        <dt id="getRequireAck" class="callable">
          <span class="name"><a href="im_flutter_sdk/EMOptions/getRequireAck.html">getRequireAck</a></span><span class="signature">(<wbr>)
            <span class="returntype parameter">&#8594; bool</span>
          </span>
          </dt>
        <dd>
          获取已读确认设置
          
</dd>
        <dt id="getRequireDeliveryAck" class="callable">
          <span class="name"><a href="im_flutter_sdk/EMOptions/getRequireDeliveryAck.html">getRequireDeliveryAck</a></span><span class="signature">(<wbr>)
            <span class="returntype parameter">&#8594; bool</span>
          </span>
          </dt>
        <dd>
          获取送达确认设置
          
</dd>
        <dt id="isAutoAcceptGroupInvitation" class="callable">
          <span class="name"><a href="im_flutter_sdk/EMOptions/isAutoAcceptGroupInvitation.html">isAutoAcceptGroupInvitation</a></span><span class="signature">(<wbr>)
            <span class="returntype parameter">&#8594; bool</span>
          </span>
          </dt>
        <dd>
          获取是否自动接受加群邀请
          
</dd>
        <dt id="isChatRoomOwnerLeaveAllowed" class="callable">
          <span class="name"><a href="im_flutter_sdk/EMOptions/isChatRoomOwnerLeaveAllowed.html">isChatRoomOwnerLeaveAllowed</a></span><span class="signature">(<wbr>)
            <span class="returntype parameter">&#8594; bool</span>
          </span>
          </dt>
        <dd>
          是否允许聊天室owner离开
          
</dd>
        <dt id="isDeleteMessagesAsExitGroup" class="callable">
          <span class="name"><a href="im_flutter_sdk/EMOptions/isDeleteMessagesAsExitGroup.html">isDeleteMessagesAsExitGroup</a></span><span class="signature">(<wbr>)
            <span class="returntype parameter">&#8594; bool</span>
          </span>
          </dt>
        <dd>
          获取退出(主动和被动退出)群组时是否删除聊天消息
          
</dd>
        <dt id="isSortMessageByServerTime" class="callable">
          <span class="name"><a href="im_flutter_sdk/EMOptions/isSortMessageByServerTime.html">isSortMessageByServerTime</a></span><span class="signature">(<wbr>)
            <span class="returntype parameter">&#8594; bool</span>
          </span>
          </dt>
        <dd>
          是否按照server收到时间进行排序
          
</dd>
        <dt id="setAcceptInvitationAlways" class="callable">
          <span class="name"><a href="im_flutter_sdk/EMOptions/setAcceptInvitationAlways.html">setAcceptInvitationAlways</a></span><span class="signature">(<wbr><span class="parameter" id="setAcceptInvitationAlways-param-acceptInvitationAlways"><span class="type-annotation">bool</span> <span class="parameter-name">acceptInvitationAlways</span></span>)
            <span class="returntype parameter">&#8594; void</span>
          </span>
          </dt>
        <dd>
          设置是否自动接受加好友邀请 默认true
          
</dd>
        <dt id="setAutoAcceptGroupInvitation" class="callable">
          <span class="name"><a href="im_flutter_sdk/EMOptions/setAutoAcceptGroupInvitation.html">setAutoAcceptGroupInvitation</a></span><span class="signature">(<wbr><span class="parameter" id="setAutoAcceptGroupInvitation-param-autoAcceptGroupInvitation"><span class="type-annotation">bool</span> <span class="parameter-name">autoAcceptGroupInvitation</span></span>)
            <span class="returntype parameter">&#8594; void</span>
          </span>
          </dt>
        <dd>
          设置是否自动接受加群邀请
          
</dd>
        <dt id="setAutoLogin" class="callable">
          <span class="name"><a href="im_flutter_sdk/EMOptions/setAutoLogin.html">setAutoLogin</a></span><span class="signature">(<wbr><span class="parameter" id="setAutoLogin-param-autoLogin"><span class="type-annotation">bool</span> <span class="parameter-name">autoLogin</span></span>)
            <span class="returntype parameter">&#8594; void</span>
          </span>
          </dt>
        <dd>
          设置是否自动登录
          
</dd>
        <dt id="setDeleteMessagesAsExitGroup" class="callable">
          <span class="name"><a href="im_flutter_sdk/EMOptions/setDeleteMessagesAsExitGroup.html">setDeleteMessagesAsExitGroup</a></span><span class="signature">(<wbr><span class="parameter" id="setDeleteMessagesAsExitGroup-param-deleteMessagesAsExitGroup"><span class="type-annotation">bool</span> <span class="parameter-name">deleteMessagesAsExitGroup</span></span>)
            <span class="returntype parameter">&#8594; void</span>
          </span>
          </dt>
        <dd>
          设置退出(主动和被动退出)群组时是否删除聊天消息
          
</dd>
        <dt id="setRequireAck" class="callable">
          <span class="name"><a href="im_flutter_sdk/EMOptions/setRequireAck.html">setRequireAck</a></span><span class="signature">(<wbr><span class="parameter" id="setRequireAck-param-requireAck"><span class="type-annotation">bool</span> <span class="parameter-name">requireAck</span></span>)
            <span class="returntype parameter">&#8594; void</span>
          </span>
          </dt>
        <dd>
          设置是否需要接受方已读确认
          
</dd>
        <dt id="setRequireDeliveryAck" class="callable">
          <span class="name"><a href="im_flutter_sdk/EMOptions/setRequireDeliveryAck.html">setRequireDeliveryAck</a></span><span class="signature">(<wbr><span class="parameter" id="setRequireDeliveryAck-param-requireDeliveryAck"><span class="type-annotation">bool</span> <span class="parameter-name">requireDeliveryAck</span></span>)
            <span class="returntype parameter">&#8594; void</span>
          </span>
          </dt>
        <dd>
          设置是否需要接受方送达确认,默认false
          
</dd>
        <dt id="setSortMessageByServerTime" class="callable">
          <span class="name"><a href="im_flutter_sdk/EMOptions/setSortMessageByServerTime.html">setSortMessageByServerTime</a></span><span class="signature">(<wbr><span class="parameter" id="setSortMessageByServerTime-param-sortMessageByServerTime"><span class="type-annotation">bool</span> <span class="parameter-name">sortMessageByServerTime</span></span>)
            <span class="returntype parameter">&#8594; void</span>
          </span>
          </dt>
        <dd>
          设置server收到时间进行排序 默认是false
          
</dd>
        <dt id="noSuchMethod" class="callable inherited">
          <span class="name"><a href="im_flutter_sdk/EMOptions/noSuchMethod.html">noSuchMethod</a></span><span class="signature">(<wbr><span class="parameter" id="noSuchMethod-param-invocation"><span class="type-annotation">Invocation</span> <span class="parameter-name">invocation</span></span>)
            <span class="returntype parameter">&#8594; dynamic</span>
          </span>
          </dt>
        <dd class="inherited">
          Invoked when a non-existent method or property is accessed. <a href="im_flutter_sdk/EMOptions/noSuchMethod.html">[...]</a>
          <div class="features">inherited</div>
</dd>
        <dt id="toString" class="callable inherited">
          <span class="name"><a href="im_flutter_sdk/EMOptions/toString.html">toString</a></span><span class="signature">(<wbr>)
            <span class="returntype parameter">&#8594; String</span>
          </span>
          </dt>
        <dd class="inherited">
          Returns a string representation of this object.
          <div class="features">inherited</div>
</dd>
      </dl>
    </section>

    <section class="summary offset-anchor inherited" id="operators">
      <h2>Operators</h2>
      <dl class="callables">
        <dt id="operator ==" class="callable inherited">
          <span class="name"><a href="im_flutter_sdk/EMOptions/operator_equals.html">operator ==</a></span><span class="signature">(<wbr><span class="parameter" id="==-param-other"><span class="type-annotation">dynamic</span> <span class="parameter-name">other</span></span>)
            <span class="returntype parameter">&#8594; bool</span>
          </span>
          </dt>
        <dd class="inherited">
          The equality operator. <a href="im_flutter_sdk/EMOptions/operator_equals.html">[...]</a>
          <div class="features">inherited</div>
</dd>
      </dl>
    </section>




  </div> <!-- /.main-content -->

  <div class="col-xs-6 col-sm-6 col-md-2 sidebar sidebar-offcanvas-right">
    <ol>
      <li class="section-title"><a href="im_flutter_sdk/EMOptions-class.html#constructors">Constructors</a></li>
      <li><a href="im_flutter_sdk/EMOptions/EMOptions.html">EMOptions</a></li>
    
      <li class="section-title">
        <a href="im_flutter_sdk/EMOptions-class.html#instance-properties">Properties</a>
      </li>
      <li><a href="im_flutter_sdk/EMOptions/appKey.html">appKey</a></li>
      <li class="inherited"><a href="im_flutter_sdk/EMOptions/hashCode.html">hashCode</a></li>
      <li class="inherited"><a href="im_flutter_sdk/EMOptions/runtimeType.html">runtimeType</a></li>
    
      <li class="section-title"><a href="im_flutter_sdk/EMOptions-class.html#instance-methods">Methods</a></li>
      <li><a href="im_flutter_sdk/EMOptions/allowChatRoomOwnerLeave.html">allowChatRoomOwnerLeave</a></li>
      <li><a href="im_flutter_sdk/EMOptions/getAcceptInvitationAlways.html">getAcceptInvitationAlways</a></li>
      <li><a href="im_flutter_sdk/EMOptions/getAutoLogin.html">getAutoLogin</a></li>
      <li><a href="im_flutter_sdk/EMOptions/getRequireAck.html">getRequireAck</a></li>
      <li><a href="im_flutter_sdk/EMOptions/getRequireDeliveryAck.html">getRequireDeliveryAck</a></li>
      <li><a href="im_flutter_sdk/EMOptions/isAutoAcceptGroupInvitation.html">isAutoAcceptGroupInvitation</a></li>
      <li><a href="im_flutter_sdk/EMOptions/isChatRoomOwnerLeaveAllowed.html">isChatRoomOwnerLeaveAllowed</a></li>
      <li><a href="im_flutter_sdk/EMOptions/isDeleteMessagesAsExitGroup.html">isDeleteMessagesAsExitGroup</a></li>
      <li><a href="im_flutter_sdk/EMOptions/isSortMessageByServerTime.html">isSortMessageByServerTime</a></li>
      <li><a href="im_flutter_sdk/EMOptions/setAcceptInvitationAlways.html">setAcceptInvitationAlways</a></li>
      <li><a href="im_flutter_sdk/EMOptions/setAutoAcceptGroupInvitation.html">setAutoAcceptGroupInvitation</a></li>
      <li><a href="im_flutter_sdk/EMOptions/setAutoLogin.html">setAutoLogin</a></li>
      <li><a href="im_flutter_sdk/EMOptions/setDeleteMessagesAsExitGroup.html">setDeleteMessagesAsExitGroup</a></li>
      <li><a href="im_flutter_sdk/EMOptions/setRequireAck.html">setRequireAck</a></li>
      <li><a href="im_flutter_sdk/EMOptions/setRequireDeliveryAck.html">setRequireDeliveryAck</a></li>
      <li><a href="im_flutter_sdk/EMOptions/setSortMessageByServerTime.html">setSortMessageByServerTime</a></li>
      <li class="inherited"><a href="im_flutter_sdk/EMOptions/noSuchMethod.html">noSuchMethod</a></li>
      <li class="inherited"><a href="im_flutter_sdk/EMOptions/toString.html">toString</a></li>
    
      <li class="section-title inherited"><a href="im_flutter_sdk/EMOptions-class.html#operators">Operators</a></li>
      <li class="inherited"><a href="im_flutter_sdk/EMOptions/operator_equals.html">operator ==</a></li>
    
    
    
    </ol>
  </div><!--/.sidebar-offcanvas-->

</main>

<footer>
  <span class="no-break">
    im_flutter_sdk 1.0.0
  </span>

</footer>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="static-assets/typeahead.bundle.min.js"></script>
<script src="static-assets/highlight.pack.js"></script>
<script src="static-assets/URI.js"></script>
<script src="static-assets/script.js"></script>


</body>

</html>
